package org.skipper.samples.spring.transaction.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author shoujian
 * Date: 2022-01-11
 * Time: 1:45 PM
 */
public enum GenderEnum implements IEnum<Integer> {

    MALE(1,"male"),
    FEMALE(2,"famale"),;

    private final int code;
    private final String value;

    GenderEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getValue() {
        return code;
    }
}
